package org.example.ddd.bean;

import jakarta.annotation.PostConstruct;
import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties("app")
public class LogAppProperties {

    private String name;

    private String version;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "cofBean{" +
                "name='" + name + '\'' +
                ", version='" + version + '\'' +
                '}';
    }

    @PostConstruct
    public void xxx() {
        System.out.println("--------------LogAppProperties 加载了" + toString());
    }

}
